package fachadaPlantilla.actions;

import plantilla.IPlantillaDAO;
import plantilla.PlantillaDAOFactory;

public class MoverPlantillaAction {

	private String dirOrigen;
	private String dirDestino;
	private boolean sobreescribir;

	public MoverPlantillaAction(String dirOrigen, String dirDestino,
			boolean sobreescribir) {
		this.dirOrigen = dirOrigen;
		this.dirDestino = dirDestino;
		this.sobreescribir = sobreescribir;
	}

	public Object Execute() {
		try {
			IPlantillaDAO plantillaDAO = PlantillaDAOFactory.GetDAO();
			plantillaDAO.moverPlantilla(dirOrigen, dirDestino, sobreescribir);
			return null;
		} catch (Exception e) {
			return null;
		}

	}

}
